package com.ishansong.gis.tool;

import org.bson.BsonDocument;

/**
 * Created by danqiang on 2017/7/6.
 * write
 */
class PerfWrite implements MTProcessor.Processor {

    private Commander.ArgsHolder commanderArgsHolder;
    private Perf perf = new Perf();

    PerfWrite(Commander.ArgsHolder commanderArgsHolder) {
        this.commanderArgsHolder = commanderArgsHolder;
    }

    public void process(Mongo newMongo, BsonDocument bsonDocument) {
        //newMongo.insert(bsonDocument);
        perf.out();
    }

    @Override
    public String getOldDbName() {
        return "ss_location";
    }

    @Override
    public String getNewDbName() {
        return "ss_location";
    }

    @Override
    public String getOldCollectionName() {
        return "order_location_info_";
    }

    @Override
    public String getNewCollectionName() {
        return "order_location_info";
    }

    @Override
    public String toString() {
        return commanderArgsHolder.toString();
    }

}
